strings.Builder.buf (field)
22 uses
strings (current package)
builder.go#L23: buf []byte
builder.go#L41: return unsafe.String(unsafe.SliceData(b.buf), len(b.buf))
builder.go#L45: func (b *Builder) Len() int { return len(b.buf) }
builder.go#L50: func (b *Builder) Cap() int { return cap(b.buf) }
builder.go#L55: b.buf = nil
builder.go#L61: buf := bytealg.MakeNoZero(2*cap(b.buf) + n)[:len(b.buf)]
builder.go#L62: copy(buf, b.buf)
builder.go#L63: b.buf = buf
builder.go#L74: if cap(b.buf)-len(b.buf) < n {
builder.go#L83: b.buf = append(b.buf, p...)
builder.go#L91: b.buf = append(b.buf, c)
builder.go#L99: n := len(b.buf)
builder.go#L100: b.buf = utf8.AppendRune(b.buf, r)
builder.go#L101: return len(b.buf) - n, nil
builder.go#L108: b.buf = append(b.buf, s...)
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |